package Reaction::InterfaceModel::Action::DBIC::Result::Delete;

use Reaction::Types::DBIC;
use Reaction::Class;

class Delete is 'Reaction::InterfaceModel::Action', which {
  has '+target_model' => (isa => 'DBIx::Class::Row');
  
  sub can_apply { 1 }
  
  implements do_apply => as {
    my $self = shift;
    return $self->target_model->delete;
  };

};

1;
